Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Add props to configure CodeMirror#86

Open
janmyler wants to merge 2 commits into
FormidableLabs:masterfrom
janmyler:feature-enable-line-numbers
Open

Add props to configure CodeMirror#86
janmyler wants to merge 2 commits into
FormidableLabs:masterfrom
janmyler:feature-enable-line-numbers

Conversation

@janmyler

Copy link
Copy Markdown

Enable passing configuration options for CodeMirror via props from <Playground /> while keeping the original defaults.

Adds: lineNumbers, smartIndent, lineWrapping, tabSize.

@Intregrisist

Intregrisist commented Nov 10, 2018

Copy link
Copy Markdown

I was just about to make a PR for this. I wonder if it might be better to make it an object prop:

<Playground
   editor={{
    lineNumbers: true
  }}
/>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants